package com.jh.user.repository;

import com.jh.user.pojo.CongMingChannel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CongMingChannelRepository extends JpaRepository<CongMingChannel, Long>, JpaSpecificationExecutor<CongMingChannel> {
    @Query("select c from CongMingChannel c where c.channelNo = :channelNo")
    CongMingChannel getByChannelNo(@Param("channelNo") String channelNo);
}
